package com.ccz.demo.design.builder.computer;

/**
 * Created by TigerChain
 * 具体的建造者，这里是商场的一个装机人员
 */
public class AssemblerBuilder implements Builder {
    private Computer computer = new Computer() ;
    @Override
    public void createCpu(String cpu) {
        computer.setCpu(cpu);
    }

    @Override
    public void createDisk(String hardDisk) {
        computer.setDisk(hardDisk);
    }

    @Override
    public void createMotherBoard(String motherBoard) {
        computer.setMotherboard(motherBoard);
    }


    @Override
    public void createMemory(String memory) {
        computer.setMemory(memory);
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}
